export const toNumber = (val: any, init = 0) => +(val || init);